package com.jxl.application.controller.convert;

import com.jxl.application.controller.dto.SubjectAnswerDto;
import com.jxl.application.controller.dto.SubjectInfoDto;
import com.jxl.domain.entity.SubjectAnswerBO;
import com.jxl.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectAnswerConvert {

    SubjectAnswerConvert INSTANCE = Mappers.getMapper(SubjectAnswerConvert.class);

    /**
     * 类型转换
     * @param subjectAnswerDto
     * @return
     */
    SubjectAnswerBO convertDtoToSubjectInfoBO(SubjectAnswerDto subjectAnswerDto);

    /**
     * 集合类型转换
     * @param subjectAnswerDto
     * @return
     */
    List<SubjectAnswerBO> convertDtoToSubjectInfoBOList(List<SubjectAnswerDto> subjectAnswerDto);
}
